package com.cy.myblog.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by Administrator on 2015/6/13.
 */
@Entity
@Table(name="tloginAddr")
public class TloginAddr implements Serializable {
    /**
     * 客户端地址
     */
    private Long id;
    private String address;
    private int times;

    private static final long serialVersionUID = 4635701983775296589L;

    @Column(name = "address",unique = true, nullable = false, length = 20)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    @Override
    public String toString() {
        return "TloginAddr{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", times=" + times +
                '}';
    }
}
